﻿using Rsd.Dudu.Core;
using Rsd.Faith.Models;
using System;

namespace Rsd.Faith.Fiscal.Core
{
    /// <summary>
    /// 
    /// </summary>
    public interface IFiscalService : IService
    {

        /// <summary>
        /// 住房（ZZ）缴存 入账
        /// </summary>
        /// <param name="fapiao"></param>
        /// <param name="b_xiaoqu"></param>
        /// <param name="b_loudong"></param>
        /// <param name="b_danyuan"></param>
        /// <param name="b_fenhu"></param>
        /// <returns></returns>
        int DepositRecordingZZ(IBookService bookService, FiscalPiaoJuXinXiBiaoModel fapiao, BookXiaoQuZongZhangModel b_xiaoqu, BookLouDongMingXiZhangModel b_loudong, BookDanYuanMingXiZhangModel b_danyuan, BookFenHuZhangModel b_fenhu);

        /// <summary>
        /// 电梯消防（DT） 缴存 入账
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        int DepositRecordingDT(FiscalPiaoJuXinXiDtBiaoModel fapiao);

        /// <summary>
        /// 划拨入账：入账  资金总账、小区总账 
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        int FundingRecording(IBookService bookService, UsingZiJinShiYongHuaBoBiaoModel huaBo);
       
       
        /// <summary>
        /// 使用入账 - 分摊 入账 楼栋 单元明细账
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        int SharingRecordingMX(IBookService bookService, UsingZiJinShiYongHuaBoBiaoModel huaBo);
         

        /// <summary>
        /// 分摊入账
        /// 1:修改分摊数据状态
        /// 2:添加分户账流水 
        /// 3:核算分户账目和账面 的使用金额
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        int SharingRecordingFH(UsingZiJinShiYongHuaBoBiaoModel huaBo);

        /// <summary>
        /// 根据分摊明细信息 创建房屋信息 、房屋账户信息
        /// </summary>
        /// <param name="bookService"></param>
        /// <param name="huaBo"></param>
        /// <returns></returns>
        int NewFangWuXinXi(IBookService bookService, UsingZiJinShiYongHuaBoBiaoModel huaBo);


    }
}